package com.zzyl.common.utils;

public class UserThreadLocal {
    public static final ThreadLocal<Long> CONTEXT = new ThreadLocal<>();

    public static void setValue(Long userId){
        CONTEXT.set(userId);
    }

    public static Long getValue(){
        return CONTEXT.get();
    }

    public static void clean(){
        CONTEXT.remove();
    }
}
